<!DOCTYPE html>

<html>

<head>
    <title></title>
    <script src='../vue.js'></script>
</head>

<body>
    <div id="app-4">
        <div v-bind:class="[activeClass, errorClass]"></div>
        <div v-bind:class="[isActive ? activeClass : '', errorClass]"></div>
    </div>
    <script>
        var app4 = new Vue({
            el: '#app-4',
            data: {
                activeClass: 'active',
                errorClass: 'text-danger',
                isActive: false
            }
        });
    </script>
</body>


</html>